package com.eclink.asset.convert;

import com.eclink.asset.domain.AssetCategory;
import com.eclink.asset.pojo.dto.AssetCategoryDTO;
import com.eclink.asset.pojo.vo.AssetCategoryVO;
import org.mapstruct.Mapper;

import java.util.List;
/**
 * 资产分类表  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface AssetCategoryConvert  {



    /**
     * @param source DO
     * @return DTO
     */
    AssetCategoryDTO do2dto(AssetCategory source);

    /**
     * @param source DTO
     * @return DO
     */
    AssetCategory dto2do(AssetCategoryDTO source);

    List<AssetCategoryVO> dos2vos(List<AssetCategory> list);
}
